5ea498f104bb07fdf202eb35c5cd02857ee3b0c5,src/main/java/com/rultor/agents/github/qtn/QnReferredTo.java,QnReferredTo,understand,#Comment.Smart#URI#,84

Before Change


        final URI home) throws IOException {
        final String prefix = String.format("@%s ", this.login);
        final Req req;
        if (comment.body().trim().startsWith(prefix)) {
            req = this.origin.understand(comment, home);
        } else if (comment.body().contains(prefix)) {
            new Answer(comment).post(

After Change


        final Req req;
        final Matcher matcher = Pattern.compile(
            String.format(".*\\b?(%s\\b).*", prefix)
        ).matcher(comment.body().trim());
        if (matcher.matches()) {
            if (matcher.start(1) == 0) {
                req = this.origin.understand(comment, home);
            } else {